package org.easy.eao.spring.schema;

import org.easy.eao.annotations.Merge;
import org.easy.eao.annotations.Persist;
import org.easy.eao.annotations.Remove;
import org.easy.eao.annotations.Retrieve;
import org.easy.eao.spring.Eao;
import org.easy.eao.spring.hibernate.model.Exam;

@Eao(id = "oneEao")
public interface ScanDaoOne {

	@Persist
	void create(Exam exam);

	@Retrieve
	Exam get(Integer pk);

	@Retrieve(lazy = true)
	Exam load(Integer pk);

	@Merge
	void update(Exam exam);

	@Remove
	void delete(Exam exam);
}
